<html>
<head>
<!-- Copyright (c) GoAhead Software Inc., 1995-2010. All Rights Reserved. -->
<title>umSetGroupAccessMethod -- GoAhead WebServer API</title>
<link rel="stylesheet" href="../../../style/doc.css" type="text/css">
</head>

<body>
<TABLE class=apitable BORDER="0" BORDERCOLOR="#FFFFFF" BGCOLOR="#FFFFFF"><TR BORDERCOLOR="#FFFFFF"><TD>

<TABLE border=0 width=100% cellspacing=0 cellpadding=0 CLASS="apiTitle"> <TR> 
<td class="titleLeft" align=left width="33%">umSetGroupAccessMethod</TD><td class="titleCenter" align=center width="33%"><b>GoAhead 
WebServer API</b></TD><td class="titleRight" align=right width="33%"><B>GoAhead 
EMF</B></TD></TR> </TABLE><HR><H2><B>Synopsis</B></H2><P>	Set the default access method for the group.</P><H2><B>Prototype</B></H2><PRE> #include &quot;um.h&quot;

 int umSetGroupAccessMethod(char_t * group, accessMeth_t am);</PRE><H2><B>Parameters</B></H2><p><TABLE WIDTH="75%" BORDER="0"><TR><TD WIDTH="19%">group</TD><TD WIDTH="81%">Group name.</TD></TR><TR><TD WIDTH="19%">am</TD><TD WIDTH="81%">Access method.</TD></TR></TABLE><H2><B>Description</B></H2><P>	Access method can be one of:<BR>		AM_NONE  - Group has no access to anything at all<BR>		AM_FULL - Group has access all pages, no authorization required<BR>		AM_BASIC - group requires at least basic authentication,<BR>		AM_DIGEST - group requires at least digest authentication,<BR>		AM_INVALID - not a valid access method</P><H2><B>Return Value</B></H2><P>	This function returns 0 if successful or -1 on error.</P><H2><B>Example</B></H2><PRE>int nCheck = umSetGroupAccessMethod(T(&quot;users&quot;), AM_DIGEST);</PRE><H2><B>See Also</B></H2><P>	<A HREF="umGetAccessMethodForURL.htm">umGetAccessMethodForURL</A>()</P><H2>&nbsp;</H2><BLOCKQUOTE>&nbsp;</BLOCKQUOTE></TD></TR></TABLE>
</body>
</html>
